FROM golang:1.17-alpine

WORKDIR /go/src/app
COPY . .
ENV GOPROXY="https://goproxy.cn,direct"

RUN go mod download
RUN go build -o main main.go

EXPOSE 8081 9001

CMD ["./main"]


